Schnittstelle Settings
- Alle Superschnittstellen:
ColorProvider, Serializable
- Alle bekannten Unterschnittstellen:
UserSettings
- Alle bekannten Implementierungsklassen:
DefaultSetting
Default implementations for
VisibilitySetting for multiple purposes:- EXPORT - configures the export to PDF or image format
- FILTER - toggles the visibility of filter data
- OPTION - toggles general options that affect the result of a comparison
- METAOPTION - color options that are not related to a difference type
- Seit:
- 4.1
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifikator und TypSchnittstelleBeschreibungstatic enumSettings to configure the export to PDF or image format.static classThis is a convenience class to enable or disable the highlighting of changes by a filter.static enumColor options that are not related to a difference type.static enumOptions affect the comparison result, but are not related to the actual export or output format. -
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final ObjectSetting<Double> Defines a scale factor for the generated images (original and difference images).static final ObjectSetting<Integer> Specifies the maximum number of errors that can occur before the comparison will be stopped for the current PDF file. -
Methodenübersicht
Modifikator und TypMethodeBeschreibung@Nonnull Settingscopy()Create a copy of the current settingList<ObjectSetting<?>> Returns all registered additional settings.getColor(com.inet.pdfc.config.ColorSetting settingKey) Get the color for a setting@Nullable ObjectgetSetting(String settingKey) Return the value for this settingbooleanisEnabled(VisibilitySetting settingKey) Get the visibility for this settingvoidSet the color for this setting.voidsetEnabled(boolean visible, VisibilitySetting... settingKey) Set the visibility for this settingvoidsetMarkerColor(Color color, DiffGroup.GroupType groupType) Veraltet.voidsetMarkerColor(Color color, Modification.ModificationType groupType) Set the color for the marker.voidsetSetting(@Nullable Object value, String settingKey) Set the specific setting with the valueVon Schnittstelle geerbte Methoden ColorProvider
getMarkerColor, getMarkerColor, getOutlineColor, getOutlineColor
-
Felddetails
-
MAX_ERRORS_PER_FILE
Specifies the maximum number of errors that can occur before the comparison will be stopped for the current PDF file. The default value is: 100.
[value: -1 for unlimited]
Accepted values: -1 toInteger.MAX_VALUE -
IMAGE_SCALE_FACTOR
Defines a scale factor for the generated images (original and difference images). The default is 1 which is no scaling.
Accepted values: 0.1 to 100.0- Seit:
- 5.0
-
-
Methodendetails
-
getAllObjectSettingNames
List<ObjectSetting<?>> getAllObjectSettingNames()Returns all registered additional settings. To query the current value of the setting passVisibilitySetting.name()to thegetSetting(String)method.- Gibt zurück:
- all additional settings, not
null - Seit:
- 5.0
-
setMarkerColor
Veraltet.As of i-net PDFC 25.10, use insteadsetMarkerColor(Color, ModificationType)Set the color for the marker. Overrides the default provided by {linkColorProvider.getMarkerColor(GroupType). (For visible set the alpha to 0)- Parameter:
color- the marker colorgroupType- the group type tp set the marker color for- Seit:
- 4.1
-
setMarkerColor
Set the color for the marker. Overrides the default provided by {linkColorProvider.getMarkerColor(ModificationType). (For visible set the alpha to 0)- Parameter:
color- the marker colorgroupType- the group type tp set the marker color for- Seit:
- 25.10
-
setColor
Set the color for this setting. If the key is aDiffGroup.GroupType, it overrides the default provided byColorProvider.getOutlineColor(GroupType)).
Note: Colors forDiffGroup.GroupTypes should be semi-transparent.- Parameter:
color- the color to be used to the markupsettingKey- the setting key. e.G. aDiffGroup.GroupTypeor theSettings.METAOPTION.ALLOUTLINEMARKER- Seit:
- 4.1
- Siehe auch:
-
setEnabled
Set the visibility for this setting- Parameter:
visible- true for visible otherwise falsesettingKey- the visibility setting key(s) to update the vsibility for- Seit:
- 4.1
- Siehe auch:
-
isEnabled
Get the visibility for this setting- Parameter:
settingKey- the setting key to get the visibility for- Gibt zurück:
truefor visible hencefalse- Seit:
- 4.1
- Siehe auch:
-
getColor
Get the color for a setting- Parameter:
settingKey- the key of the setting- Gibt zurück:
- the color for this setting
- Seit:
- 4.1
-
setSetting
Set the specific setting with the value- Parameter:
value- value for the setting or null for remove the settingsettingKey- the setting name, usuallyVisibilitySetting.name()- Löst aus:
IllegalArgumentException- thrown in case the value has a wrong typ or the value has wrong definition range for this setting- Seit:
- 5.0
-
getSetting
-
copy
@Nonnull Settings copy()Create a copy of the current setting- Gibt zurück:
- copy of the current setting
- Seit:
- 5.0
-
setMarkerColor(Color, ModificationType)